package com.fengze.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;
import java.util.List;

public class TreeNode implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String label;


    private String org;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<TreeNode> children;

    public TreeNode() {
    }

    public TreeNode(TreeNodeVO vo) {
        this.id = vo.getId();
        this.label = vo.getName();
        this.org = vo.getOrg();
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getOrg() {
        return org;
    }

    public void setOrg(String org) {
        this.org = org;
    }

    public List<TreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }
}
